#ifndef TIME_H
#define TIME_H
#include <iostream>
#include <string>
using namespace std;
class Time
{
public:
	Time() = default;
	Time(int h, int m);
	inline int getHour() const{
		return hour;
	}
	inline int getMinute() const{
		return minute;
	}
    Time operator + (int m) const;
    Time operator + (const Time& y) const;
    int operator - (const Time& y) const; //返回时间间隔
private:
	int hour{};
	int minute{};
};
inline int hour(const Time& t);
inline int minute(const Time& t);
ostream&
operator << (ostream& os, const Time& x);
#endif
